package com.euond.accv.mdm.domain;

import java.util.*;
import java.math.BigDecimal;
import javax.persistence.*;
import java.io.Serializable;

import org.hibernate.annotations.DynamicInsert;
import com.alibaba.fastjson.annotation.JSONField;
import com.euond.common.domain.AbstractEntity;


@Entity
@Table(name="mdm_store_group")
@DynamicInsert //该注解会根据属性非空动态生成insert语句
public class MdmStoreGroup extends AbstractEntity<Integer> implements Serializable{
	private static final long serialVersionUID = 1L;
	
	/**
	 * ID
	 */
	@Id
	@Column(name="id")
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
    
	/**
	 * 分组编号 （为叶子节点时，分组编号即为门店编号）
	 */
    @Column(name="store_group_no")
    private String storeGroupNo;
    
	/**
	 * 分组名称
	 */
    @Column(name="store_group_name")
    private String storeGroupName;
    
	/**
	 * 上级分组编号
	 */
    @Column(name="p_store_group_no")
    private String pStoreGroupNo;
    
	/**
	 * 级别 （1,2,3,N）
	 */
    @Column(name="level_no")
    private Integer levelNo;
    
	/**
	 * 是否叶子节点 （0=否 1=是）
	 */
    @Column(name="is_leaf")
    private Integer isLeaf;
    
	/**
	 * 排列序号
	 */
    @Column(name="order_no")
    private Integer orderNo;
    
	/**
	 * 状态
	 */
    @Column(name="status")
    private String status;
    
	/**
	 * 备注
	 */
    @Column(name="remarks")
    private String remarks;
    
	/**
	 * 建档人
	 */
    @Column(name="creator")
    private String creator;
    
	/**
	 * 建档时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="create_time")
    private Date createTime;
    
	/**
	 * 修改人
	 */
    @Column(name="modifier")
    private String modifier;
    
	/**
	 * 修改时间
	 */
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@Column(name="modify_time")
    private Date modifyTime;
    
    
    
    public void setId(Integer id){
    	this.id = id;
    }
    public String getStoreGroupNo(){
    	return this.storeGroupNo;
    }
    
    public void setStoreGroupNo(String storeGroupNo){
    	this.storeGroupNo = storeGroupNo;
    }
    public String getStoreGroupName(){
    	return this.storeGroupName;
    }
    
    public void setStoreGroupName(String storeGroupName){
    	this.storeGroupName = storeGroupName;
    }
    public String getPStoreGroupNo(){
    	return this.pStoreGroupNo;
    }
    
    public void setPStoreGroupNo(String pStoreGroupNo){
    	this.pStoreGroupNo = pStoreGroupNo;
    }
    public Integer getLevelNo(){
    	return this.levelNo;
    }
    
    public void setLevelNo(Integer levelNo){
    	this.levelNo = levelNo;
    }
    public Integer getIsLeaf(){
    	return this.isLeaf;
    }
    
    public void setIsLeaf(Integer isLeaf){
    	this.isLeaf = isLeaf;
    }
    public Integer getOrderNo(){
    	return this.orderNo;
    }
    
    public void setOrderNo(Integer orderNo){
    	this.orderNo = orderNo;
    }
    public String getStatus(){
    	return this.status;
    }
    
    public void setStatus(String status){
    	this.status = status;
    }
    public String getRemarks(){
    	return this.remarks;
    }
    
    public void setRemarks(String remarks){
    	this.remarks = remarks;
    }
    public String getCreator(){
    	return this.creator;
    }
    
    public void setCreator(String creator){
    	this.creator = creator;
    }
    public Date getCreateTime(){
    	return this.createTime;
    }
    
    public void setCreateTime(Date createTime){
    	this.createTime = createTime;
    }
    public String getModifier(){
    	return this.modifier;
    }
    
    public void setModifier(String modifier){
    	this.modifier = modifier;
    }
    public Date getModifyTime(){
    	return this.modifyTime;
    }
    
    public void setModifyTime(Date modifyTime){
    	this.modifyTime = modifyTime;
    }
    
    @Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return this.id;
	}
}
